package br.com.fiap.vendas.common.locator;

import java.util.Hashtable;

import javax.naming.Context;

public class ContextEnvironment {

	public static final Hashtable<String, String> JNDI_PROPERTIES = new Hashtable<String, String>();

	static {
		JNDI_PROPERTIES.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
		JNDI_PROPERTIES.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
		JNDI_PROPERTIES.put(Context.PROVIDER_URL, "remote://localhost:4447");
		JNDI_PROPERTIES.put(Context.SECURITY_PRINCIPAL, System.getProperty("username", "ejbuser"));
		JNDI_PROPERTIES.put(Context.SECURITY_CREDENTIALS, System.getProperty("password", "ejbuser123"));
    
        		
	}

}
